package com.hongsuan.pplive.mobileAPI.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.hongsuan.pplive.mobileAPI.utils.JsonUtils;

public class ReturnStatus extends Status implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 199872723783828L;

	private Map<String, Object> item;

	@Override
	public String toString() {
		Map<String, Object> data = new HashMap<>();
		data.put("code", super.getCode());
		data.put("message", super.getMessage());
		if(item!=null) {
			data.putAll(item);
		}
		return JsonUtils.toJson(data);
	}

	public Map<String, Object> getItem() {
		return item;
	}

	public void setItem(Map<String, Object> item) {
		this.item = item;
	}

 
}
